package com.imooc.sell.enums;

import lombok.Data;
import lombok.Getter;

/**
 * 状态枚举类
 */
@Getter
public enum OrderStatusEnum {
    ORDER_STATUS_NEW(Short.parseShort("0"), "待支付订单"),
    ORDER_STATUS_FINISH(Short.parseShort("1"), "已完成订单"),
    ORDER_STATUS_CANCLE(Short.parseShort("2"), "已取消订单"),
    ORDER_STATUS_COMMENT(Short.parseShort("3"), "待评价订单");
    private Short code;
    private String msg;

    OrderStatusEnum(Short code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
